import {Application, DbAsyncStorage, DbStorage} from "@/module/storage/types";

export const dbStorageForUtools: DbStorage = window.utools?.dbStorage || {}
export const dbAsyncStorageForUtools: DbAsyncStorage = window.utools?.db.promises || {};
export const applicationForUtools: Application = {
  copyText: text => utools.copyText(text),
  shellOpenExternal: url => utools.shellOpenExternal(url)
}